package com.ssyt.yt1.day2;

/**
 * 简化了原生的for循环
 * 
 * @author Administrator
 *
 */
public class ForEachDemo {

	public static void main(String[] args) {
		int[] numbers = { 1234, 12, 34, 123, 41, 234, 123, 4, 1234 };
		
		// for (int i = 0; i < numbers.length; i++) {
		// System.out.println(numbers[i]);
		// }
		
		for (int value : numbers) {
			System.out.println(value);
		}
	}
}
